package ca.seia.comp6521.a2.io;

import java.util.Arrays;

public class FileReadResult {

	private int transactionCount;
	private int biggestTransactionItemCount;
	private double averageTransactionCount;
	private int[] itemCount;
		
	public FileReadResult(int transactionCount, int biggestTransactionItemCount, double averageTransactionCount, int[] itemCount) {
		this.transactionCount = transactionCount;
		this.biggestTransactionItemCount = biggestTransactionItemCount;
		this.averageTransactionCount = averageTransactionCount;
		this.itemCount = itemCount;
	}

	public int getTransactionCount() {
		return transactionCount;
	}
	
	public void setTransactionCount(int transactionCount) {
		this.transactionCount = transactionCount;
	}
	
	public int getBiggestTransactionItemCount() {
		return biggestTransactionItemCount;
	}
	
	public void setBiggestTransactionItemCount(int biggestTransactionItemCount) {
		this.biggestTransactionItemCount = biggestTransactionItemCount;
	}
	
	public double getAverageTransactionCount() {
		return averageTransactionCount;
	}
	
	public void setAverageTransactionCount(double averageTransactionCount) {
		this.averageTransactionCount = averageTransactionCount;
	}

	public int[] getItemCount() {
		return itemCount;
	}
	
	public void setItemCount(int[] itemCount) {
		this.itemCount = itemCount;
	}
	
	
	@Override
	public String toString() {
		return "FileReadResult [transactionCount=" + transactionCount + ", biggestTransactionItemCount=" + biggestTransactionItemCount
				+ ", averageTransactionCount=" + averageTransactionCount + ", ItemCount=" + Arrays.toString(itemCount) + "]";
	}


}
